<ftp_filesize> : Get Remote File Size (FTP)
This command retrieves size of a file on a remote FTP server.
Syntax:
<ftp_filesize>("vFileSize", "RemoteFile", "UserName", "Password")
vFileSize
Variable that receives file size in bytes.
RemoteFile
Full path to the remote file (e.g., ftp://pitrinec.com/pub/hello.txt).
UserName
User login name. If empty the "anonymous" is considered.
Password
User name login password.
Example:
<#> This sample retrieves size of file placed on
remote FTP server
<#>
<cmds>
<ftp_filesize>("vFileSize","ftp://pitrinec.com/pub/hello.txt","","")
<msg>(-100,-100,"Size of %_vQuoteChar%ftp://pitrinec.com/pub/hello.txt%_vQuoteChar%
file is %vFileSize% bytes.","Message",1)